/*业务逻辑*/
var stockDao = require('../dao/stock')

function stockOut(outBill,callback) {
     var stock = {
          product_id:outBill.product_id,
          quantity:outBill.quantity
     }
    stockDao.update_out(stock,callback)

}

function list(query,callback) {
    stockDao.select(query,callback);
}
module.exports ={
    list,
    stockOut
}